package com.atguigu.srb.core.pojo.entity.vo;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.entity.BorrowerAttach;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@ApiModel("借款人详情模型")
public class BorrowerDetailVO {

    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "手机")
    private String mobile;

    @ApiModelProperty(value = "性别（1：男 0：女）")
    private Integer sex;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "学历")
    private Integer education;

    @ApiModelProperty(value = "是否结婚（1：是 0：否）")
    private Boolean marry;

    @ApiModelProperty(value = "行业")
    private Integer industry;

    @ApiModelProperty(value = "月收入")
    private Integer income;

    @ApiModelProperty(value = "还款来源")
    private Integer returnSource;

    @ApiModelProperty(value = "联系人名称")
    private String contactsName;

    @ApiModelProperty(value = "联系人手机")
    private String contactsMobile;

    @ApiModelProperty(value = "联系人关系")
    private Integer contactsRelation;

    @ApiModelProperty(value = "状态（0：未认证，1：认证中， 2：认证通过， -1：认证失败）")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    //以后需要自定义扩展的属性和值 存到params中：
    // marry 是   ， status 待审核
    // sex  男, education 研究生
    // industry 技师,  returnSource 工资
    // income 3000~5000  ， contactsRelation 兄弟
    @ApiModelProperty(value = "自定义扩展的属性")
    @TableField(exist = false)
    private Map<String,String> params = new HashMap<>();
    @ApiModelProperty(value = "借款人附件列表")
    private List<BorrowerAttach> borrowerAttaches;
}
